package com.ty.day1.home;


/**
 * Created by IntelliJ IDEA.
 *
 * @author : txy
 * @create : 2023/11/22 18:03
 */
public class Task3 {
    public static void main(String[] args) {
        String str="asd我是Java爱好者——唐宇";
        String s="唐宇";
        Boolean result = Util.judge(str, s);
        if (result!=null){
            if (result){
                System.out.println("是以"+s+"结尾");
            }else {
                System.out.println("不是以"+s+"结尾");
            }

        }else {
            System.out.println("传递的参数为空");
        }
    }

}
